package com.abcode.ybbemail.client.controller;

import com.abcode.ybbemail.client.service.EmailOperationService;
import com.abcode.ybbemail.common.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author:Andy.Yang
 * @Date:2019/4/25 0025
 */
@RestController
@RequestMapping("/operation")
public class EmailOperationController {

  @Autowired
  private EmailOperationService emailOperationService;

  @RequestMapping(value = "/save_contract")
  public ResultVO sendEmail(String to, String subject, String content) {
    return emailOperationService.emailOperationService(to,subject,content);
  }
}
